using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace One_Crappy_RPG
{
    class MenuScrollBar
    {
        //Vector2 Position = Vector2.Zero;
        int value = 0;
        int maxValue = 0;

        public int Value
        {
            get { return value; }
        }

        public MenuScrollBar(int max)
        {
            maxValue = max;
        }

        public void Scroll(int increment)
        {
            value += increment;

            //Clamp it
            if (value > maxValue)
                value = maxValue;

            if (value < 0)
                value = 0;
        }
    }
}
